package com.srmt.document.example;

import com.srmt.document.api.*;
import com.srmt.document.factory.*;

/**
 * 快速测试示例
 */
public class QuickTest {
    
    public static void main(String[] args) {
        try {
            // 设置飞书配置到系统属性
            System.setProperty("feishu.app.id", "cli_a5bf8739dbb8d00c");
            System.setProperty("feishu.app.secret", "fnQKqF3FsORrrv7accELfcLjqTlNVBeE");
            
            // 创建文档服务
            DocumentService service = DocumentServiceFactory.createDefault();
            DocumentManager manager = service.getDocumentManager();
            
            System.out.println("DocumentService created successfully!");
            System.out.println("DocumentManager: " + manager.getClass().getName());
            
            // 测试创建文档
            String docId = manager.createBlankDocument("Test Document", "");
            System.out.println("Created document: " + docId);
            
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
            e.printStackTrace();
        }
    }
}